#ifndef DIRECTORIESWIDGET_H
#define DIRECTORIESWIDGET_H
//编译器对话框中，当前编译器的各相关目录和可执行文件的显示区控件
class DirectoriesWidget: public QWidget
{
    Q_OBJECT
public:
    DirectoriesWidget(QWidget *parent = 0);

    QListWidget *getBinListWidget()
    {
        return binListWidget;
    }
    QListWidget *getLibListWidget()
    {
        return libListWidget;
    }
    QListWidget *getCIncludeListWidget()
    {
        return cIncludeListWidget;
    }
    QListWidget *getCppIncludeListWidget()
    {
        return cppIncludeListWidget;
    }

private:
    QTabWidget *tabWidget = nullptr;
    QListWidget *binListWidget = nullptr;
    QListWidget *libListWidget = nullptr;
    QListWidget *cIncludeListWidget = nullptr;
    QListWidget *cppIncludeListWidget = nullptr;

    QLineEdit *pathLineEdit = nullptr;
    QPushButton *pathButton = nullptr; //定义path按钮
    QPushButton *addButton = nullptr; //定义add按钮
    QPushButton *replaceButton = nullptr; //定义replace按钮
    QPushButton *deleteButton = nullptr; //定义delete按钮

    void currentTabChanged(int index);
    void pathButtonClicked();
    void pathLineEditTextChanged();
    void lineEditEnterKeyPressed();
    void addButtonClicked();
    void deleteButtonClicked();
    void replaceButtonClicked();
    void itemSelectionChanged();
};
#endif
